package com.seari.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import com.seari.bean.DeviceList;
import com.seari.bean.DeviceType;
import com.seari.mapper.DeviceTypeMapper;
import com.seari.pojo.QueryDeviceType;

@Service("deviceTypeService")
public class DeviceTypeServiceImpl implements DeviceTypeService
{

	@Autowired
	private DeviceTypeMapper dtm;
	
	public int addDeviceType(DeviceType deviceType,String lineID)
	{
		// TODO Auto-generated method stub
		return dtm.addDeviceType(deviceType,lineID);
	}

	public Integer getDeviceIdByName(String deviceName,String lineID)
	{
		// TODO Auto-generated method stub
		return dtm.getDeviceIdByName(deviceName,lineID);
	}

	public List<DeviceType> getDeviceTypeByParams(QueryDeviceType qdt)
	{
		// TODO Auto-generated method stub
		return dtm.getDeviceTypeByParams(qdt);
	}

    @Override
    public int getDeviceTypeCount(QueryDeviceType qdt)
    {
        return dtm.getDeviceTypeCount(qdt);
    }

	@Override
	public int deleteDeviceType(String[] ArrayIds,String line) {
		// TODO Auto-generated method stub
		return dtm.deleteDeviceType(ArrayIds,line);
	}
    
    

}
